﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML>
<?php 
include 'include/config.php';
include 'include/opendb.php';
include 'include/iprestrict.php';
?>
<HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>详细信息</TITLE>
<STYLE type="text/css" media="all">@import "jscss/style.css";</STYLE>
<STYLE type="text/css" media="all">@import "jscss/autocomplete.css";</STYLE>
<STYLE type="text/css" media="all">@import "jscss/lytebox.css";</STYLE>
<SCRIPT type="text/javascript" src="jscss/jquery.js"></SCRIPT> 
<SCRIPT type="text/javascript" src="jscss/lytebox.js"></SCRIPT> 
<SCRIPT type="text/javascript" src="jscss/autocomplete.js"></SCRIPT> 
</HEAD>

<body> 
<TABLE width="900" border="0" align="center" cellspacing="0" cellpadding="0">
<TBODY>
<TR> <TD valign="top" width="960" height="118" background="pics/main.jpg"></TD></TR>
<TR><TD><TABLE width="910px" border="0" align="center"><TR>
<td>
<?php
 echo $navbar;  //菜单设置
?>
</td>
<TD align='right'>

</td></tr></table>
</TD> </TR>
 <TR><TD valign="top" align="left">
<hr style='BORDER-BOTTOM-STYLE: dotted; BORDER-LEFT-STYLE: dotted; BORDER-RIGHT-STYLE: dotted; BORDER-TOP-STYLE: dotted' color=#FFFFF size=1> 
<?php
$cvhtable='cvh_hgas';
///////////////////////////////////////
if(isset($_GET['lsid']))
{
$guid=explode(":",$_GET['lsid']);
mysql_query("set names 'utf8'");
$query="select * from ".$cvhtable." where GlobalUniqueIdentifier='".$guid[4]."' limit 1";
if($result = mysql_query($query)){
  if($rows = mysql_fetch_assoc($result)){ 
  ///////////////////
  if(strlen($rows['LSID'])>2) $lsid='&nbsp;&nbsp(物种名LSID:<a href="'.$cvh_lsid.
   'index.php?lsid=urn:lsid:cvh.org.cn:names:'.$rows['LSID'].'" target="_blank">urn:lsid:cvh.org.cn:names:'.$rows['LSID'].'</a>)';
   else $lsid='&nbsp;&nbsp(没有LSID，<a href="'.$lsid_reg.'" target="_blank">请到主馆等级注册该名称</a>)';
//////////////////////
  if(strlen($rows['DecimalLongitude'])>2) 
   {
   $ll=$rows['DecimalLatitude'].','.$rows['DecimalLongitude'];
   $ll_Accuracy='<a title="在Google Map上动态查看" href="http://ditu.google.cn/maps?q='.$ll.'&z=9" target="_blank">'.$ll.'</a>'.
	   '&nbsp;&nbsp;配准精度：'.$rows['GeoreferenceRemarks']; 
   $smap='<br><img src="http://ditu.google.cn/staticmap?center='.$ll.
        '&zoom=9&size=500x375&maptype=roadmap&markers='.$ll.',red&key='.$mapkey.'&sensor=false" />';
   }
  else {$ll_Accuracy=''; $smap='';}
  //////对标本鉴定历史的处理/////////////
    if($rows['HasHistory']==0) $history='无';
   else $history='<a href="history.php?guid='.$rows['LSID'].'" rel="lyteframe" 
       rev="width: 640px; height: 380px; scrolling: auto;">有</a>';
   /////对标本图片的判断和处理////////////
    if(strlen($rows['ImageURL'])>2) $hasPic='<a href="'.$image_path.$rows['ImageURL'].'" rel="lytebox">有</a>';
    else $hasPic='无';
   /////////////////
  echo '<table>';
  $trstyle=' onMouseOver="this.style.backgroundColor=\'#cccccc\'" onMouseOut="this.style.backgroundColor=\'#f5d893\'"';
  echo '<tr><td width=150><b>馆藏信息</b></td><td></td></tr>'.
       '<tr'.$trstyle.'><td>LSID</td><td>urn:lsid:cvh.org.cn:specimen:'.$rows['GlobalUniqueIdentifier'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>馆代码</td><td>'.$rows['InstitutionCode'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>条形码</td><td>'.$rows['CatalogNumber'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>台纸号</td><td>'.$rows['CollectionCode'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>最近索引日期</td><td>'.$rows['DateLastModified'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>标本类型</td><td>'.$rows['BasisOfRecord'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>标本状态</td><td>'.$rows['Preparations'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>库存状态</td><td>'.$rows['Disposition'].'</td></tr>'.
 	   '<tr'.$trstyle.'><td>图片</td><td>'.$hasPic.'</td></tr>'.
	   
       '<tr><td width=150>&nbsp;</td><td></td></tr>'.
	   '<tr><td width=150><b>鉴定信息</b></td><td></td></tr>'.
	   '<tr'.$trstyle.'><td>科</td><td>'.$rows['Family'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>属</td><td>'.$rows['Genus'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>学名</td><td>'.$rows['ScientificName'].$lsid.'</td></tr>'.
	   '<tr'.$trstyle.'><td>命名人</td><td>'.$rows['AuthorYearOfScientificName'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>中文名</td><td>'.$rows['CommonName'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>鉴定人</td><td>'.$rows['IdentifiedBy'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>鉴定日期</td><td>'.$rows['DateIdentified'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>模式类型</td><td>'.$rows['TypeStatus'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>鉴定历史</td><td>'.$history.'</td></tr>'.

	   
	   '<tr><td width=150>&nbsp;</td><td></td></tr>'.
	   '<tr><td width=150><b>采集信息</b></td><td></td></tr>'.
	   '<tr'.$trstyle.'><td>采集人</td><td>'.$rows['Collector'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>采集号</td><td>'.$rows['CollectorNumber'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>采集日期</td><td>'.$rows['DateCollected'].'</td></tr>'.
	   
       '<tr><td width=150>&nbsp;</td><td></td></tr>'.
	   '<tr><td width=150><b>采集地信息</b></td><td></td></tr>'.	
	   '<tr'.$trstyle.'><td>原始采集地标签信息</td><td>'.$rows['Country'].','.$rows['StateProvince_label'].','.
	        $rows['County_label'].','.$rows['Locality_label'].'</td></tr>'.
	   '<tr'.$trstyle.'><td>整理后规范化采集地</td><td>'.$rows['Country'].','.$rows['StateProvince'].','.
	        $rows['County'].','.$rows['Locality'].'</td></tr>'.			
	   '<tr'.$trstyle.'><td>高程(米)</td><td>'.$rows['MinimumElevation'].'-'.$rows['MaximumElevation'].'</td></tr>'.
  	   '<tr'.$trstyle.'><td valign="top">坐标及精度</td><td>'.$ll_Accuracy.','.$smap.'</td></tr>'	   
	   ;
echo '</table>';	   
 } 
}
}
else  echo  '';
?>

 </TD></TR>
<tr><td align="left" valign="top"> 	
 <hr style='BORDER-BOTTOM-STYLE: dotted; BORDER-LEFT-STYLE: dotted; BORDER-RIGHT-STYLE: dotted; BORDER-TOP-STYLE: dotted' color=#FFFFF size=1> <table id="flex1" style="display:none"></table>
	</td>
</tr><TR><TD height="70" align="center" bgcolor="#d1ab7a"><br><h2>
<?php echo $footer; ?></h2></TD>
</TR></TBODY></TABLE>
</BODY></HTML>